{include file="merchant/integral/owner_search.tpl"}
<div class="div_line"></div>

{if $ownerExist eq 1}
<div class="integral_owner cfl">
{if $hasRef eq 0}
	<img style="float:left;" src="/images/icon_man.gif" /><span class="color_green" style="float:left; margin:15px;">业主信息</span>
	<table width="100%" align="center">
		<tr>
			<td><span>卡号：</span>{$ownerInfo.supplementary_card}</td>
			<td><span>扣减积分状态：</span>未关联</td>
		</tr>
		<tr>
			<td><span>姓名：</span><span class="color_ry">{$ownerInfo.owner_name}</span></td>
			<td><span>卡片状态：</span>{if $ownerInfo.card_status eq 2}冻结{else}未关联{/if}</td>
			</td>
		</tr>
	</table>
	<div class="div_line" style="width:650px;"></div>
	{if $ownerInfo.card_status eq 1}
	<table width="300px" style="margin:20px;">
	<tr><td>
	该业主第一次光临本店</td><td>
	<div class="btn_green"><input type="button" onclick="window.location.href='/merchant/integral/add';" value="积分开通" /></div>
	</td></tr>
	</table>
	{/if}
{else}
	{include file="merchant/integral/owner_info.tpl"}
	<div class="div_line"></div>
	{if $ownerInfo.card_status eq 1 and $ownerInfo.pay_status eq 1 and $ownerShopRe.owner_card_status eq 1}
	<form action="/merchant/integral/reduceConfirm" id="formUpdate" method="post">
	<input type="hidden" name="txt_owner_id" id="txt_owner_id" value="{$ownerInfo.owner_id}" />
	<table>
		<tr>
			<th width="120px" align="right">本次扣减积分：</th>
			<td>
				<input type="text" class="input_c" style="width:200px;" name="txt_jifen" id="txt_jifen" />
				<span id="jifenError" class="color_red"></span>
			</td>
		</tr>
		<tr>
			<th align="right">供应商：</th>
			<td>
				<select style="width:200px;" class="sel_common" name="sel_supplier" id="sel_supplier">
					<option value="-1">不选择</option>
					{foreach from=$sInfo item=v}
					<option value="{$v.s_id}">{$v.s_name}</option>
					{/foreach}
				</select>
			</td>
		</tr>
		<tr>
			<th>
			</th>
			<td>
				<div class="btn_green"><input type="button" onclick="reduceIntegral()" value="确  定" /></div>
			</td>
		</tr>
	</table>
	</form>
	{/if}
{/if}
</div>
{/if}